//
//  TZCellModel.m
//  wangYiLottery
//
//  Created by mac on 16/4/3.
//  Copyright © 2016年 tz. All rights reserved.
//

#import "TZHallCellModel.h"
#import "TZCellSubModel.h"
@implementation TZHallCellModel
- (instancetype)initWithDict:(NSDictionary *)dict
{
    self = [super init];
    if (self) {
        self.title = dict[@"title"];
        NSArray *tempArray = self.chiles;
        NSMutableArray *mArray = [NSMutableArray arrayWithCapacity:tempArray.count];
        for (NSDictionary *dict in tempArray) {
            TZCellSubModel *subModel = [TZCellSubModel subModelWithDict:dict];
            [mArray addObject:subModel];
        }
        self.chiles = mArray;
    }
    return self;
}

+ (instancetype)cellWithDict:(NSDictionary *)dict {
    return [[self alloc] initWithDict:dict];
}
@end
